/**
 * Created by ls.c on 2016/11/3.
 */

export const START_LOADING = 'START_LOADING'
export const FINISH_LOADING = 'FINISH_LOADING'
export const LOADING_STATUS = 'LOADING_STATUS'
export const TOKEN_KEY = 'TOKEN_KEY'

export const FETCH_CARD_CMCC_SUCCESS = 'FETCH_CARD_CMCC_SUCCESS'
export const FETCH_CARD_CMCC_TOTAL_SUCCESS = 'FETCH_CARD_CMCC_TOTAL_SUCCESS'
export const FETCH_CARD_PACKAGE_SUCCESS = 'FETCH_CARD_PACKAGE_SUCCESS'


export const FETCH_MENU_SUCCESS = 'FETCH_MENU_SUCCESS'
export const FETCH_PROFILE_SUCCESS = 'FETCH_PROFILE_SUCCESS'

export const FETCH_ORDER_LIST_SUCCESS = 'FETCH_ORDER_LIST_SUCCESS'
export const FETCH_ORDER_INFO_SUCCESS = 'FETCH_ORDER_INFO_SUCCESS'
export const FETCH_ORDER_PACKET_SUCCESS = 'FETCH_ORDER_PACKET_SUCCESS'
export const FETCH_ORDER_OPERATOR_SUCCESS = 'FETCH_ORDER_OPERATOR_SUCCESS'
export const FETCH_ORDER_CARD_TYPE_SUCCESS = 'FETCH_ORDER_CARD_TYPE_SUCCESS'
export const FETCH_ORDER_PACKAGE_SUCCESS = 'FETCH_ORDER_PACKAGE_SUCCESS'
export const FETCH_ORDER_PACKET_EXPORT_SUCCESS = 'FETCH_ORDER_PACKET_EXPORT_SUCCESS'



export const FETCH_BILL_LIST_SUCCESS = 'FETCH_BILL_LIST_SUCCESS'
export const FETCH_BILL_STATISTICS_SUCCESS = 'FETCH_BILL_STATISTICS_SUCCESS'

export const FETCH_GEUST_BILL_SUCCESS = 'FETCH_GEUST_BILL_SUCCESS'
export const FETCH_GEUST_BILL_STATISTICS_SUCCESS = 'FETCH_GEUST_BILL_STATISTICS_SUCCESS'

export const FETCH_ACCOUNT_LIST_SUCCESS = 'FETCH_ACCOUNT_LIST_SUCCESS'
export const FETCH_ACCOUNT_INFO_SUCCESS = 'FETCH_ACCOUNT_INFO_SUCCESS'


export const FETCH_AGENT_LIST_SUCCESS = 'FETCH_AGENT_LIST_SUCCESS'
export const FETCH_AGENT_INFO_SUCCESS = 'FETCH_AGENT_INFO_SUCCESS'


export const FETCH_NOTICE_LIST_SUCCESS = 'FETCH_NOTICE_LIST_SUCCESS'
export const FETCH_CMCC_INCARD_SUCCESS = 'FETCH_CMCC_INCARD_SUCCESS'
export const FETCH_CARRIER_INFO_SUCCESS = 'FETCH_CARRIER_INFO_SUCCESS'
export const FETCH_CARRIER_ITEM_SUCCESS = 'FETCH_CARRIER_ITEM_SUCCESS'
export const FETCH_CARRIER_ALIAS_SUCCESS = 'FETCH_CARRIER_ALIAS_SUCCESS'



const mutations = {

	// 开始加载动画
	[START_LOADING] (state) {
		state.loading = true
	},
	// 结束加载动画
	[FINISH_LOADING] (state) {
		state.loading = false
	},
	// 获取登录状态
	[LOADING_STATUS] (state, data) {
		state.loginStatus = data
	},
	// 获取登录TOKEN
	[TOKEN_KEY] (state, data) {
		state.tokenKey = data
	},
	// 获取菜单列表
	[FETCH_MENU_SUCCESS] (state, data) {
		state.menuList = data
	},

	// 获取用户信息
	[FETCH_PROFILE_SUCCESS] (state, data) {
		state.profileList = data
	},


	// 获取移动卡信息列表
	[FETCH_CARD_CMCC_SUCCESS] (state, data) {
		state.cardCMCC = data
	},
	// 获取移动卡统计数据
	[FETCH_CARD_CMCC_TOTAL_SUCCESS] (state, data) {
		state.cardCMCCTotal = data
	},
	// 获取某个子订单的叠加包列表
	[FETCH_CARD_PACKAGE_SUCCESS] (state, data) {
		state.cardPackage = data
	},


	// 获取所有订单列表
	[FETCH_ORDER_LIST_SUCCESS] (state, data) {
		state.orderList = data
	},
	// 获取每个订单列表
	[FETCH_ORDER_INFO_SUCCESS] (state, data) {
		state.orderInfoList = data
	},
	// 获取所有叠加包订单列表
	[FETCH_ORDER_PACKET_SUCCESS] (state, data) {
		state.orderPacketList = data
	},
	// 获取运营商列表
	[FETCH_ORDER_OPERATOR_SUCCESS] (state, data) {
		state.orderOperator = data
	},
	// 获取卡类型列表
	[FETCH_ORDER_CARD_TYPE_SUCCESS] (state, data) {
		state.orderCardType = data
	},
	// 获取叠加包套餐列表
	[FETCH_ORDER_PACKAGE_SUCCESS] (state, data) {
		state.orderPackage = data
	},
	// 获取叠加包订单导出数据
	[FETCH_ORDER_PACKET_EXPORT_SUCCESS] (state, data) {
		state.exportPackage = data
	},


	// 获取账单列表
	[FETCH_BILL_LIST_SUCCESS] (state, data) {
		state.billList = data
	},
	// 获取账单金额
	[FETCH_BILL_STATISTICS_SUCCESS] (state, data) {
		state.billStatistics = data
	},
	// 获取账单列表(客户)
	[FETCH_GEUST_BILL_SUCCESS] (state, data) {
		state.geustBillList = data
	},
	// 获取账单金额(客户)
	[FETCH_GEUST_BILL_STATISTICS_SUCCESS] (state, data) {
		state.geustBillStatistics = data
	},

	// 获取帐号列表
	[FETCH_ACCOUNT_LIST_SUCCESS] (state, data) {
		state.accountList = data
	},
	// 获取帐号信息
	[FETCH_ACCOUNT_INFO_SUCCESS] (state, data) {
		state.accountInfo = data
	},

	// 获取客户列表
	[FETCH_AGENT_LIST_SUCCESS] (state, data) {
		state.agentList = data
	},
	// 获取客户信息
	[FETCH_AGENT_INFO_SUCCESS] (state, data) {
		state.agentInfo = data
	},

	// 获取公告列表
	[FETCH_NOTICE_LIST_SUCCESS] (state, data) {
		state.noticeList = data
	},

	// 入库提示信息
	[FETCH_CMCC_INCARD_SUCCESS] (state, data) {
		state.cmccInCardMsg = data
	},
	// 能力平台信息
	[FETCH_CARRIER_INFO_SUCCESS] (state, data) {
		state.carrierInfo = data
	},
	// 能力平台编辑信息
	[FETCH_CARRIER_ITEM_SUCCESS] (state, data) {
		state.carrierItem = data
	},
	// 能力平台-账号别名
	[FETCH_CARRIER_ALIAS_SUCCESS] (state, data) {
		state.carrierAlias = data
	}


}

export default mutations

